package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DispatchTheoreticalPressureDecayValuesMapper;
import com.ruoyi.system.domain.DispatchTheoreticalPressureDecayValues;
import com.ruoyi.system.service.IDispatchTheoreticalPressureDecayValuesService;

/**
 * 压力理论衰减值Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DispatchTheoreticalPressureDecayValuesServiceImpl implements IDispatchTheoreticalPressureDecayValuesService 
{
    @Autowired
    private DispatchTheoreticalPressureDecayValuesMapper dispatchTheoreticalPressureDecayValuesMapper;

    /**
     * 查询压力理论衰减值
     * 
     * @param theoreticalPressureDecayValuesId 压力理论衰减值主键
     * @return 压力理论衰减值
     */
    @Override
    public DispatchTheoreticalPressureDecayValues selectDispatchTheoreticalPressureDecayValuesByTheoreticalPressureDecayValuesId(Long theoreticalPressureDecayValuesId)
    {
        return dispatchTheoreticalPressureDecayValuesMapper.selectDispatchTheoreticalPressureDecayValuesByTheoreticalPressureDecayValuesId(theoreticalPressureDecayValuesId);
    }

    /**
     * 查询压力理论衰减值列表
     * 
     * @param dispatchTheoreticalPressureDecayValues 压力理论衰减值
     * @return 压力理论衰减值
     */
    @Override
    public List<DispatchTheoreticalPressureDecayValues> selectDispatchTheoreticalPressureDecayValuesList(DispatchTheoreticalPressureDecayValues dispatchTheoreticalPressureDecayValues)
    {
        return dispatchTheoreticalPressureDecayValuesMapper.selectDispatchTheoreticalPressureDecayValuesList(dispatchTheoreticalPressureDecayValues);
    }

    /**
     * 新增压力理论衰减值
     * 
     * @param dispatchTheoreticalPressureDecayValues 压力理论衰减值
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDispatchTheoreticalPressureDecayValues(DispatchTheoreticalPressureDecayValues dispatchTheoreticalPressureDecayValues)
    {
        return dispatchTheoreticalPressureDecayValuesMapper.insertDispatchTheoreticalPressureDecayValues(dispatchTheoreticalPressureDecayValues);
    }

    /**
     * 修改压力理论衰减值
     * 
     * @param dispatchTheoreticalPressureDecayValues 压力理论衰减值
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDispatchTheoreticalPressureDecayValues(DispatchTheoreticalPressureDecayValues dispatchTheoreticalPressureDecayValues)
    {
        return dispatchTheoreticalPressureDecayValuesMapper.updateDispatchTheoreticalPressureDecayValues(dispatchTheoreticalPressureDecayValues);
    }

    /**
     * 批量删除压力理论衰减值
     * 
     * @param theoreticalPressureDecayValuesIds 需要删除的压力理论衰减值主键
     * @return 结果
     */
    @Override
    public int deleteDispatchTheoreticalPressureDecayValuesByTheoreticalPressureDecayValuesIds(Long[] theoreticalPressureDecayValuesIds)
    {
        return dispatchTheoreticalPressureDecayValuesMapper.deleteDispatchTheoreticalPressureDecayValuesByTheoreticalPressureDecayValuesIds(theoreticalPressureDecayValuesIds);
    }

    /**
     * 删除压力理论衰减值信息
     * 
     * @param theoreticalPressureDecayValuesId 压力理论衰减值主键
     * @return 结果
     */
    @Override
    public int deleteDispatchTheoreticalPressureDecayValuesByTheoreticalPressureDecayValuesId(Long theoreticalPressureDecayValuesId)
    {
        return dispatchTheoreticalPressureDecayValuesMapper.deleteDispatchTheoreticalPressureDecayValuesByTheoreticalPressureDecayValuesId(theoreticalPressureDecayValuesId);
    }
}
